package querydsl.domain;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;


/**
 * QWpRegistrationLog is a Querydsl query type for WpRegistrationLog
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QWpRegistrationLog extends com.querydsl.sql.RelationalPathBase<WpRegistrationLog> {

    private static final long serialVersionUID = 559342824;

    public static final QWpRegistrationLog wpRegistrationLog = new QWpRegistrationLog("wp_registration_log");

    public final NumberPath<Long> blogId = createNumber("blogId", Long.class);

    public final DateTimePath<java.sql.Timestamp> dateRegistered = createDateTime("dateRegistered", java.sql.Timestamp.class);

    public final StringPath email = createString("email");

    public final NumberPath<Long> id = createNumber("id", Long.class);

    public final StringPath ip = createString("ip");

    public final com.querydsl.sql.PrimaryKey<WpRegistrationLog> primary = createPrimaryKey(id);

    public QWpRegistrationLog(String variable) {
        super(WpRegistrationLog.class, forVariable(variable), "null", "wp_registration_log");
        addMetadata();
    }

    public QWpRegistrationLog(String variable, String schema, String table) {
        super(WpRegistrationLog.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QWpRegistrationLog(String variable, String schema) {
        super(WpRegistrationLog.class, forVariable(variable), schema, "wp_registration_log");
        addMetadata();
    }

    public QWpRegistrationLog(Path<? extends WpRegistrationLog> path) {
        super(path.getType(), path.getMetadata(), "null", "wp_registration_log");
        addMetadata();
    }

    public QWpRegistrationLog(PathMetadata metadata) {
        super(WpRegistrationLog.class, metadata, "null", "wp_registration_log");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(blogId, ColumnMetadata.named("blog_id").withIndex(4).ofType(Types.BIGINT).withSize(19).notNull());
        addMetadata(dateRegistered, ColumnMetadata.named("date_registered").withIndex(5).ofType(Types.TIMESTAMP).withSize(19).notNull());
        addMetadata(email, ColumnMetadata.named("email").withIndex(2).ofType(Types.VARCHAR).withSize(255).notNull());
        addMetadata(id, ColumnMetadata.named("ID").withIndex(1).ofType(Types.BIGINT).withSize(19).notNull());
        addMetadata(ip, ColumnMetadata.named("IP").withIndex(3).ofType(Types.VARCHAR).withSize(30).notNull());
    }

}

